package com.beasts.ant.page.repository;

import com.beasts.ant.page.entity.APPagePortlet;
import com.beasts.ant.page.entity.Layout;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author cn_zkn
 * @date 20/04/2018 11:04 AM
 * @since 1.0
 */
public interface PagePortletRepository extends JpaRepository<APPagePortlet, String> {
    @Transactional
    void  deleteByPageId(String pageId);

    List<APPagePortlet> findByPageId(String pageId);



}
